<?php
require('../includes/modules/database/connect.php');
require('../includes/modules/database/function_chungloai.php');
$idParent=$_POST['chungLoaiCha'];
//var_dump($idParent);exit();
$tenChungloai=$_POST['tenChungLoai'];
//var_dump($tenChungloai);exit();

$anHien=$_POST['anHien'];
//var_dump($anHien);exit();

$themChungLoai=themChungLoai($idParent,$tenChungloai,$anHien);
if($themChungLoai)
{
	header('location: index.php');
}
else
{
	echo 'error!!!';
}
?>